class String
    def remove(*args)
       str = self.to_s;
       args.each {|s| str = str.gsub(s,"");}
       return str
    end
    def replace_all(*args)
       str = self.to_s;
       args[0].each {|s| str = str.gsub(s[0].to_s, s[1].to_s);}
       return str
    end
end
class Json
    attr_reader :properties;
    def initialize()
       @properties = {};
    end
    def method_missing(method, value=false)
       method = method.to_s.remove "=";
       method = method.to_sym;
       if value != false
           @properties[method] = value;
       else
           return @properties[method];
       end
    end
end

j = Json.new;
j.car = "lua";